﻿namespace Cos.Module.Security.NHibernate.Tests
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;

    using NUnit.Framework;

    [TestFixture]
    public class AdminUserDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapAdminUserDataModel()
        {
            new PersistenceSpecification<AdminUserDataModel>(Session)
                .CheckProperty(x => x.UserPwd, "UserPW")
                .CheckProperty(x => x.UserFirstName, "first name")
                .CheckProperty(x => x.UserLastName, "last name")
                .CheckProperty(x => x.UserEmail, "email")
                //.CheckReference(x => x.AccountId, this.account.Id)
                //.CheckReference(x => x.RoleReferenceId, this.role.Id)
                //.CheckReference(x => x.CultureCode, this.culture.Id)
                .VerifyTheMappings();
        }
    }
}
